projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a72c457
)
roundedbox: Initialize the hashtable key before using it
author
Timm Bäder
<mail@baedert.org>
Tue, 3 May 2016 14:58:02 +0000
(10:58 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 3 May 2016 14:58:02 +0000
(10:58 -0400)
In mem_hash, we are iterating over the individual bytes of the key, so
make sure all of it is initialized.
gtk/gtkroundedbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkroundedbox.c
b/gtk/gtkroundedbox.c
index a6d9019b4d5e7220774b98b833b03eda67c85f60..38443d723638dc1b7e855a61170edd58a927c27f 100644
(file)
--- a/
gtk/gtkroundedbox.c
+++ b/
gtk/gtkroundedbox.c
@@
-278,6
+278,7
@@
append_arc (cairo_t *cr, double angle1, double angle2, gboolean negative)
Arc key;
cairo_path_t *arc;
+ memset (&key, 0, sizeof (Arc));
key.angle1 = angle1;
key.angle2 = angle2;
key.negative = negative;